<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="sweetalert.min.js"></script>
    <script src="jquery-2.1.1.js"></script>
</head>
<body>
<button class="demo3">运行示例</button>
<script>
    $('.demo3').click(function () {
        swal({
                title: "确认删除?",
                text: "Your will not be able to recover this imaginary file!",
                type: "warning",
                showCancelButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "确认",
                cancelButtonText: "取消",
                closeOnConfirm: false,
                closeOnCancel: false
            },function () {
            alert("")
        })
    });
</script>
</body>

</html>